﻿using System;
using System.Globalization;

namespace SBPweb.PlAzureNet.Client.Library.Services.Data
{

    partial class League
    {

        public CultureInfo Culture
        {
            get
            {
                return new CultureInfo(this.CultureCode.Trim().Replace("_", "-"));
            }
            set
            {
                this.CultureCode = value.Name.Replace("-", "_");
            }
        }

    }

}